package com.yylending.las.lending;

import com.yyfax.infrastructure.mvp.IEvent;
import com.yylending.las.common.location.entity.Location;
import com.yylending.las.lending.quota.myquota.MyQuotaModel;

/**
 * Created by laixj on 2017/7/6.
 * Copyright ©2017 www.yylending.com. All Rights Reserved.
 */

public class QuotaEvent {
	public static class Event extends IEvent {
		/**
		 * 更新我的额度
		 */
		public final static int QUOTA_REFRESH = 5;
		public final static int QUOTA_SHOW_LOADING = 6;
		public final static int QUOTA_SHOW_LOAN_NOTICE = 7;
		public final static int QUOTA_SHOW_CALL_DIALOG = 8;
		public final static int QUOTA_JUMP_HELP_PAGE = 9;
		public final static int QUOTA_JUMP_MESSAGE_PAGE = 10;
		public final static int QUOTA_LOCATE_SUCCESS = 11;
		public final static int QUOTA_REFRESH_NOT_APPLY = 12;

		public MyQuotaModel.ApplyStatus mApplyStatus;

		public Event(int eventId) {
			id = eventId;
		}

		public Event(int eventId, MyQuotaModel.ApplyStatus mApplyStatus) {
			id = eventId;
			this.mApplyStatus = mApplyStatus;
		}
	}

	public static class RefreshStatusEvent extends Event {
		public RefreshStatusEvent(int eventId, MyQuotaModel.ApplyStatus mApplyStatus) {
			super(eventId, mApplyStatus);
		}
	}

	public static class ShowLoadingEvent extends Event {
		public boolean noNetwork = false;

		public ShowLoadingEvent(int eventId, boolean noNetwork) {
			super(eventId);
			this.noNetwork = noNetwork;
		}
	}

	public static class ShowLoanNoticeEvent extends Event {
		public int page;

		public ShowLoanNoticeEvent(int eventId, int page) {
			super(eventId);
			this.page = page;
		}
	}

	public static class ShowCallDialogEvent extends Event {
		public int page;
		public String phoneNumber;

		public ShowCallDialogEvent(int eventId, int page, String phoneNumber) {
			super(eventId);
			this.page = page;
			this.phoneNumber = phoneNumber;
		}
	}

	public static class PageJumpEvent extends Event {
		public int page;

		public PageJumpEvent(int eventId, int page) {
			super(eventId);
			this.page = page;
		}
	}

	public static class LocateSuccessEvent extends Event {
		public Location location;

		public LocateSuccessEvent(int eventId, Location location) {
			super(eventId);
			this.location = location;
		}
	}

	public static class ShowRedDotEvent{

	}

	/**
	 * 显示提额状态loading页面
	 */
	public static class ShowIncreaseLoadingEvent {

	}
	/**
	 * 额度与借款审批之后的状态综合显示页Tab切换
	 */
	public static class ComplexStatusTabChangedEvent{
		public int currentTab;

		public ComplexStatusTabChangedEvent(int currentTab){
			this.currentTab = currentTab;
		}
	}

	/**
	 * 不是未获取额度状态，需要dismiss掉邀请码输入框
	 */
	public static class DismissCodeVerifyDialogEvent {

	}

	/**
	 * 需要自动弹出视频认证需要身份证的提示框
	 */
	public static class ShowVideoVerifyHintEvent {

	}

	/**
	 * 有新的push消息
	 */
	public static class HaveNewPushEvent {

	}
}
